package com.ruoyi.psi.purchase.apply.domain;



import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;
import java.util.List;

/**
 * 采购申请表
 * psi_purchase_apply
 * @author Drj 2021/6/28
 * 修改：lsy 2021.7.17
 */
public class PurchaseApply extends BaseEntity {
    /**
     * 采购申请单编号
     */
    @NotNull(message = "采购申请单编号不能为空")
    @ApiModelProperty(value = "采购申请单编号", required = true)
    @Excel(name = "采购申请单编号")
    private String purchaseApplyId;
    /**
     * 自产生产计划编号/销售计划编号
     */
    @ApiModelProperty(value = "销售计划编号")
    @Excel(name = "自产生产计划编号/销售计划编号")
    private String planSaleId;
    /**
     * 申请人编号
     */
    @ApiModelProperty(value = "申请人编号")
    @Excel(name = "申请人编号")
    private String staffId;
    /**
     * 申请人名称
     */
    @ApiModelProperty("申请人名称")
    @Excel(name = "申请人名称")
    private String staffName;
    /**
     * 申请时间
     */
    @ApiModelProperty("申请时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "申请时间")
    private Timestamp applyTime;
    /**
     * 备注
     */
    @ApiModelProperty("备注")
    @Excel(name = "备注")
    private String remark;
    /**
     * 采购申请单产品信息
     */
    private List<PurchaseApplyList> purchaseApplyLists;



    public List<PurchaseApplyList> getPurchaseApplyLists() {
        return purchaseApplyLists;
    }

    public void setPurchaseApplyLists(List<PurchaseApplyList> purchaseApplyLists) {
        this.purchaseApplyLists = purchaseApplyLists;
    }

    public String getPurchaseApplyId() {
        return purchaseApplyId;
    }

    public void setPurchaseApplyId(String purchaseApplyId) {
        this.purchaseApplyId = purchaseApplyId;
    }

    public String getPlanSaleId() {
        return planSaleId;
    }

    public void setPlanSaleId(String planSaleId) {
        this.planSaleId = planSaleId;
    }

    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public Timestamp getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Timestamp applyTime) {
        this.applyTime = applyTime;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "PurchaseApply{" +
                "purchaseApplyId='" + purchaseApplyId + '\'' +
                ", planSaleId='" + planSaleId + '\'' +
                ", staffId='" + staffId + '\'' +
                ", staffName='" + staffName + '\'' +
                ", applyTime=" + applyTime +
                ", remark='" + remark + '\'' +
                '}';
    }
}
